﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="Listado.aspx.cs" Inherits="ED_Nivelacion.PresentacionWeb.Listado" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentCss" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="Form1" role="form" runat="server">





        <asp:ScriptManager ID="ScriptManager1" runat="server">
            <Services>
                <asp:ServiceReference Path="~/ServiciosLocales/CuestionarioService.asmx" />
            </Services>
        </asp:ScriptManager>
        <asp:Timer ID="Timer1" runat="server">
                                </asp:Timer>

        <% ED_Nivelacion.Negocios.Carrera_C _objCa = new ED_Nivelacion.Negocios.Carrera_C();
           ED_Nivelacion.Negocios.Matricula_C _objMa = new ED_Nivelacion.Negocios.Matricula_C();
           var result_C = _objCa.ObtenerCarrera();
           foreach (var item in result_C)
           {
                                                       
        %>
        <div class="portlet-body">

            <div class="panel-group" id="accordion">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">

                            <a data-toggle="collapse" data-parent="#accordion" href="#collapse<%=item.idCarrera %>">
                                <%=item.CarreraNombre %>
                                                
                            </a>
                        </h4>

                    </div>
                    <div id="collapse<%=item.idCarrera %>" class="panel-collapse collapse">
                        <div class="panel-body">
                        <div class="portlet-body">
                               <script>
                                   $(document).ready(function () {
                                       $('#example-table<%=item.idCarrera %>').dataTable();
                                   });
                               </script>
                           <div class="table-responsive">
                                                <table id="example-table<%=item.idCarrera %>" class="table table-striped table-bordered table-hover table-green">
                                                    <thead>
                                                        <tr>
                                                            <th>#</th>
                                                            <th>NOMBRE</th>
                                                            <th>APELLIDO</th>
                                                            <th>CÉDULA</th>
                                                            <th>PARALELO</th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        
                                                    <% 
               var result = _objMa.ObtenerListado(item.idCarrera);

               foreach (var item_ in result)
               {
                                                    
                                               
                                                    %>
                                                       
                                                        <tr class="odd gradeX">
                                                        <td><%=item_.idAlumno%></td>
                                                        <td class="auto-style4"><%=item_.Nombre%></td>
                                                        <td class="auto-style1"><%=item_.Apellido%></td>
                                                        <td class="auto-style5"><%=item_.Cedula%></td>
                                                        <td class="auto-style2"><%=item_.Paralelo %></td>
                                                        </tr>
                                                         <%} %>
                                                    </tbody>
                                                </table>
                                            </div>
                            </div>
                        
                    </div>
                </div>
            </div>

        </div>
            </div>
        <% } %>
        <!-- Condensed Responsive Table -->

        <!-- /.portlet -->

        
    </form>
</asp:Content>
